#include "CharUtil.h"


CharUtil::CharUtil(void)
{
}

char* CharUtil::w2c(const wchar_t *pwstr){
	int nlength=wcslen(pwstr);

	char* pcstr =new char[nlength+1];
	for(size_t i=0;i<nlength;i++)
		pcstr[i] = pwstr[i];

	pcstr[nlength] = '\0';

	return pcstr;
}
